package com.lwq.seata.feign;

import com.lwq.seata.entity.TAmount;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seata-payment")
public interface TestFeignClient {

    @GetMapping("payment-service/sayHello")
    public String sayHello();


    @PostMapping("payment-service/decrementAmount")
    public boolean decrementAmount(@RequestBody TAmount tAmount);
}
